//import config from "@/utils/config"
import http from "@/utils/request"
export default {
	my: {
		url: `device/my`,
		name: "我的设备",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	updateNickName: {
		url: `device/update_nickname`,
		name: "设备基础信息",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	getBaseInfo: {
		url: `device/get_base_info`,
		name: "设备基础信息",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getProperty: {
		url: `device/get_property`,
		name: "设备属性数据信息",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getToiletTimes: {
		url: `device/get_toilet_times`,
		name: "今日昨日如厕对比",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getTodayWorkLog: {
		url: `device/get_today_work_log`,
		name: "今日设备数据日志",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getSettings:{
		url: `device/get_settings`,
		name: "设备属性数据信息",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	getLightSetting:{
		url: `light/get`,
		name: "灯光信息",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	
	handle: {
		url: `device/handle`,
		name: "今日设备数据日志",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	setPro: {
		url: `device/set_pro`,
		name: "设置设备属性",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	set_protect_weight: {
		url: `device/set_protect_weight`,
		name: "设置体重等级",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	selectUnknown: {
		url: `device/select_unknown`,
		name: "未知宠物指定",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	getNotice:{
		url: `notice/warning`,
		name: "获取设备异常通知",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	readNoice: {
		url: `notice/read`,
		name: "已读消息",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	del: {
		url: `device/del`,
		name: "删除设备",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	bind: {
		url: `device/bind`,
		name: "绑定设备",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	get_self_color_list: {
		url: `device/get_self_color_list`,
		name: "自定义颜色",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	add_self_color_list: {
		url: `device/add_self_color`,
		name: "添加自定义颜色",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	delete_self_color: {
		url: `device/delete_self_color`,
		name: "删除自定义颜色",
		get: async function(data){
			return await http.get(this.url, data);
		}
	},
	check_device: {
		url: `device/check_device`,
		name: "检查是否绑定设备",
		post: async function(){
			return await http.post(this.url);
		}
	},
	
	get_area_device:{
		url: `device/get`,
		name: "获取区域设备",
		get: async function(){
			return await http.get(this.url);
		}
	},
	get_area_device:{
		url: `device/get`,
		name: "获取区域设备",
		get: async function(){
			return await http.get(this.url);
		}
	},
	
	datavice_num:{
		url: `device/datavice_num`,
		name: "获取区域设备",
		get: async function(){
			return await http.get(this.url);
		}
	},
	statistic_data:{
		url: `device/statistic_data`,
		name: "获取清理统计数据",
		get: async function(data){
			return await http.get(this.url,data);
		}
	},
	
}
